// 导入二次封装axios
import koi from "@/utils/axios.ts";


// 登录用户相关
enum API {
  profileDetail = "/system/sys/profile/user/detail",  
  profileListTreeQuery = "/system/sys/profile/menu/tree",
  profileDictGroup = "/system/sys/profile/dict/group",
  sysUserProfileResetPassword = "/system/sys/profile/user/reset/password",
  profileDepartmentTreeQuery ="/system/sys/profile/department/tree",
}

// 登录用户详情
export const profileDetail = () => {
  return koi.post(API.profileDetail);
};
// 获取登录人菜单树
export const profileListTreeQuery = (params: object) => {
  return koi.post(API.profileListTreeQuery,params);
};

// 查询有权限的科室树
export const profileDepartmentTreeQuery = () => {
  return koi.post(API.profileDepartmentTreeQuery);
};

// 字典分组列表查询
export const profileDictGroup = (params: object) => {
  return koi.post(API.profileDictGroup,params);
};
// 重置密码
export const sysUserProfileResetPassword = (params: object) => {
  return koi.post(API.sysUserProfileResetPassword,params);
};
